package com.lyl.serviceorder.cloudclient;

import com.lyl.commonutils.R;
import com.lyl.vo.order.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu",fallback = EduDegradeFeignClient.class)
public interface EduClient {
    //根据课程id查询课程信息
    @GetMapping("/serviceedu/api/course/getDto/{courseId}")
    public CourseWebVoOrder getCourseInfoDto(@PathVariable("courseId") Long courseId);
}